<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { setTheme } from '@/utils'
import { ElConfigProvider } from 'element-plus'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const loading = ref(false)
const language = zhCn

onMounted(() => {
  setTheme('dark')
})
</script>

<template>
  <ElConfigProvider :locale="language">
    <div class="app-container" v-loading.fullscreen.lock="loading">
      <RouterView />
    </div>
  </ElConfigProvider>
</template>
